package com.bcxj.apiboss.client;

import com.bcxj.internalcommon.dto.ResponseResult;
import com.bcxj.internalcommon.entity.Car;
import com.bcxj.internalcommon.entity.DriverCarBindingRelationship;
import com.bcxj.internalcommon.entity.DriverUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * ClassName: ServiceDriverUserClient
 * Package: com.bcxj.apiboss.client
 * Description:
 *
 * @Author BCXJ
 * @Create 2024/10/19 11:55
 * @Version 1.0
 * @Since 1.0
 */
@FeignClient("service-driver-user")
public interface ServiceDriverUserClient {

    @PostMapping("user")
    ResponseResult addUser(@RequestBody DriverUser driverUser);

    @PutMapping("user")
    ResponseResult updateUser(@RequestBody DriverUser driverUser);

    @PostMapping("car")
    public ResponseResult addCar(@RequestBody Car car);


    @PostMapping("/driver-car-binding-relationship/bind")
    public ResponseResult bing(@RequestBody DriverCarBindingRelationship driverCarBindingRelationship);

    @PostMapping("/driver-car-binding-relationship/unbind")
    public ResponseResult unBind(@RequestBody DriverCarBindingRelationship driverCarBindingRelationship);
}
